import request from '@/utils/request'

export function onlineRatio(data) {
  return request({
    url: '/analysis/online-ratio',
    method: 'post',
    data
  })
}

export function weeklyMeter(data) {
  return request({
    url: '/analysis/weekly/meter',
    method: 'post',
    data
  })
}

export function weeklyInstall(data) {
  return request({
    url: '/analysis/weekly/install',
    method: 'post',
    data
  })
}

export function deviceFault(data) {
  return request({
    url: '/analysis/device/fault',
    method: 'post',
    data
  })
}

export function dashboardCount(data) {
  return request({
    url: '/analysis/dashboard/count',
    method: 'post',
    data
  })
}

export function financeRevenueReport(data) {
  return request({
    url: '/analysis/finance/revenue',
    method: 'post',
    data
  })
}

export function financeUsageReport(data) {
  return request({
    url: '/analysis/finance/usage',
    method: 'post',
    data
  })
}

export function financePaymentReport(data) {
  return request({
    url: '/analysis/finance/payment',
    method: 'post',
    data
  })
}

export function waterMonthlyUsage(data) {
  return request({
    url: '/analysis/water/monthly-usage',
    method: 'post',
    data
  })
}

export function waterMonthlyReceive(data) {
  return request({
    url: '/analysis/water/monthly-receive',
    method: 'post',
    data
  })
}

export function yearWaterUsage(data) {
  return request({
    url: '/analysis/water/year-usage',
    method: 'post',
    data
  })
}

export function deviceMeterRate(data) {
  return request({
    url: '/analysis/device/monthly-meter',
    method: 'post',
    data
  })
}

export function meterReport(data) {
  return request({
    url: '/analysis/device/meter-report',
    method: 'post',
    data
  })
}

export function customerFeeReport(data) {
  return request({
    url: '/analysis/finance/customer-fee-report',
    method: 'post',
    data
  })
}
